package com.kfm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {

    @GetMapping("/hello")
    public String hello(){
        System.out.println("hello()");
        return "hello";
    }

    @RequestMapping("/ex2")
    public String ex2(){
        throw new RuntimeException("ex2");
    }
}
